package com.rongshu.view.userInfo.activity;

import android.content.Intent;
import android.os.Bundle;

import com.rongshu.R;
import com.rongshu.utils.Constant;
import com.rongshu.view.base.BaseActivity;
import com.rongshu.view.userInfo.fragment.MyPenpalWillFragment;
import com.rongshu.view.userInfo.fragment.TaPenpalWillFragment;

public class PenpalWillActivity extends BaseActivity {


    @Override
    protected int initLayout() {
        return R.layout.activity_penpal_will_view;
    }

    @Override
    protected void initView() {
        Intent intent = getIntent();
        int userid = intent.getIntExtra(Constant.USER_ID, 0);
        Bundle bundle = new Bundle();
        bundle.putInt(Constant.USER_ID, userid);
        if (userid == 0) {
            replaceFragment(MyPenpalWillFragment.class, MyPenpalWillFragment.class.getSimpleName(), R.id.content, bundle, null);
        } else {
            replaceFragment(TaPenpalWillFragment.class, TaPenpalWillFragment.class.getSimpleName(), R.id.content, bundle, null);
        }
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void updateViews(boolean isRefresh) {

    }
}
